Is there any way to store Nagios alert to a file.

We have a private network and Nagios is configured there to monitor 100+ servers. Since there is no mail server in this network default nagios alert configuration is not possible. If we can able to store the Nagios alert to a file, by using one of our software alerting can be enabled.

1 Answer 1


It can be set up to alert you on anything.

I'm pretty sure you'd need to setup a command definition with something like the following and then use it as your notification command.


define command {
    command_name alert_to_file
    command_line echo " $hostname is down since $time" >> /path/to/file
  • How I can use this as notification command. can you provide more detailed info.
    – MOBIN TM
    Commented Nov 13, 2020 at 4:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .